<?php
	function genPass($num) {
		$arr = array_merge(range('a', 'z'), range('A', 'Z'), range('0', '9'));
		$pass = "";
		for($i=0;$i<$num;$i++)
			$pass .= $arr[rand(0, count($arr)-1)];
		return $pass;
	}
	echo genPass(8);
?>
